package com.julang.check.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * @author 赵自强
 * */
public class RequestEntity {

	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	@ApiModel(value = "TransLateRequest", description = "翻译时提交的字段")
	public static class TransLateRequest {
		@ApiModelProperty(value = "要翻译的句子", required = true)
		private String query;
		@ApiModelProperty(value = "原来的语种", required = true)
		private String from;
		@ApiModelProperty(value = "翻译的目的语种", required = true)
		private String to;
	}

	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	@ApiModel(value = "RegisterBody", description = "注册时提交的字段")
	public static class RegisterBody {
		@ApiModelProperty(value = "电话号码", required = true)
		private String phonenumber;
		@ApiModelProperty(value = "用户名", required = true)
		private String username;
		@ApiModelProperty(value = "密码", required = true)
		private String password;
		@ApiModelProperty(value = "邮箱账号", required = true)
		private String email;
	}

	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	@ApiModel(value = "LoginBody", description = "登录时需要提交的字段")
	public static class LoginBody {
		@ApiModelProperty(value = "邮箱账号")
		private String userName;
		@ApiModelProperty(value = "密码")
		private String password;
		@ApiModelProperty(value = "是否记住密码")
		private boolean remember;
	}

	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	@ApiModel(value = "ModifyPwdBody", description = "修改密码时提交原密码新密码")
	public static class ModifyPwdBody {
		@ApiModelProperty(value = "原密码")
		private String oldpassword;
		@ApiModelProperty(value = "新密码")
		private String password;
	}

	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	@ApiModel(value = "ReplaceWordRequest", description = "设置重复词替换时提交的数据")
	public static class ReplaceWordRequest {
		@ApiModelProperty(value = "PeperYY报告记录的id 通过记录获取替换文件的位置")
		private String id;
		@ApiModelProperty(value = "原词语")
		private String originWord;
		@ApiModelProperty(value = "要执行替换的词语")
		private String replaceWord;
	}

	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	@ApiModel(value = "FileName", description = "设置文件名参数")
	public static class FileName {
		@ApiModelProperty(value = "文件地址")
		private String fileName;
	}

	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	@ApiModel(value = "RepeatSentenceRequest", description = "获取重复句所需要的id")
	public static class RepeatSentenceRequest {
		@ApiModelProperty(value = "重复句Id")
		private String sentence;
	}

	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	@ApiModel(value = "RepeatReductionBody", description = "点击机器将重时候提交的数据")
	public static class RepeatReductionBody {
		@ApiModelProperty(value = "选择的翻译的类型")
		private int type;
		@ApiModelProperty(value = "降重的语句")
		private String query;
		@ApiModelProperty(value = "所要消耗的积分")
		private int jifen;

		private String sentence;
	}

}
